package org.keyyond.ms.gateway;

import java.util.Map;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.keyyond.ms.core.util.JsonUtil;
import org.keyyond.ms.gateway.controller.MsGatewayController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;

@RunWith(SpringRunner.class)
@SpringBootTest(classes=Application.class)
@WebAppConfiguration
public class UnitTestGateway {
	
	@Autowired
	MsGatewayController controller;
	
	@Test
	public void showRoute()
	{
		Map map = (Map)controller.watchNowRoute();
		System.out.println(JsonUtil.toJson(map));
		
	}

}
